-- GENERATED SPELL FOR [Trade Master Kovic] --


function spell0_8444(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8444', 3000, 1)
end

function spell1_8444(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(11990,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8444', 9000, 1)
end

function spell2_8444(pUnit, Event) --@Slow,n/a--
pUnit:FullCastSpellOnTarget(11436,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8444', 10000, 1)
end

function Sorts_8444(pUnit, Event)
local choix_sorts_8444 = math.random(0, 2)
if choix_sorts_8444 == 0 then
pUnit:RegisterEvent('spell0_8444', 1, 1)
end
if choix_sorts_8444 == 1 then
pUnit:RegisterEvent('spell1_8444', 1, 1)
end
if choix_sorts_8444 == 2 then
pUnit:RegisterEvent('spell2_8444', 1, 1)
end
end

function mob8444_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8444', math.random(1500, 3000), 1)
end

function mob8444_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8444_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8444_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8444, 1, 'mob8444_Action')
RegisterUnitEvent(8444, 2, 'mob8444_Leave')
RegisterUnitEvent(8444, 3, 'mob8444_Kill')
RegisterUnitEvent(8444, 4, 'mob8444_Die')
